import EventAgent from './EventAgent'
import {reactive} from 'vue'

export default class BaseModel extends EventAgent{
    readonly EVENT = {}
    static instance:any = null
    //构造器，
    constructor(){
		super()
    }
    static getInstance<T>(this: new () => T): T {
        if(!(<any>this).instance){
            (<any>this).instance = new this();
        }
        return (<any>this).instance;
    }
    $init(){
		// super.$init()
    }
    $destory(){
		// super.$destory()
    }
    
}